import { http } from './request'
/**
 * 获取全部银行
 * @date 2021/7/1
 */
async function getBankAll() {
  const param = { appId: await sessionStorage.getItem('appId') }
  const data = await http.post('/auth/bankSetup/listAll', param)
  if (data.code === 200) {
    return data.data
  } else {
    return []
  }
}
/**
 * 获取全部签约方式
 * @date 2021/7/1
 */
async function getSignTypeAll() {
  const param = { appId: await sessionStorage.getItem('appId') }
  const data = await http.post('/auth/signingMethod/listAll', param)
  if (data.code === 200) {
    return data.data
  } else {
    return []
  }
}
/**
 * 获取全部用户
 * @date 2021/7/1
 */
async function getGroupUserAll() {
  const param = { appId: await sessionStorage.getItem('appId') }
  const data = await http.get('/auth/user/groupUserDropDwon/' + param.appId)
  if (data.code === 200) {
    return data.data
  } else {
    return []
  }
}
export default {
  getBankAll,
  getSignTypeAll,
  getGroupUserAll
}

